package edu.gduf.dao;

import edu.gduf.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeacherMapper {
    int deleteByPrimaryKey(Integer tId);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByIdAndPassword(@Param("tId") Integer tId, @Param("tPassword") String tPassword);

    /**
     * 根据tId查询教师信息
     * @param tId
     * @return
     */
    Teacher selectById(Integer tId);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);
}